#include "ros/ros.h"

/*
演示参数删除
实现：
ros::NodeHandle
    delParam()

ros::param
    del()
*/

int main(int argc, char** argv)
{
    setlocale(LC_ALL, "");
    ros::init(argc, argv, "param_del_c");
    ros::NodeHandle nh;
    //删除:NodeHandle
    bool flag =nh.deleteParam("radius");
    if(flag){
        ROS_INFO("删除成功");
    }else{
        ROS_INFO("删除失败");
    }

    bool flag1 =ros::param::del("radius");
    if(flag1){
        ROS_INFO("删除成功");
    }else{
        ROS_INFO("删除失败");
    }
}